/**
 * 
 */
package com.dream.house.dao.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import cn.com.servyou.base.dao.BaseDAO;
import cn.com.servyou.base.exception.DAOException;

import com.dream.house.dao.UserDAO;
import com.dream.house.entity.UserDTO;

/**
 * @author ahk
 * @since 1.0
 */
public class UserDAOImpl extends BaseDAO implements UserDAO {

	/* (non-Javadoc)
	 * @see com.dream.house.dao.UserDAO#getUser(java.lang.String)
	 */
	@Override
	public UserDTO getUser(String userId,String groupId) throws DAOException {
		Map<String,String> map=new HashMap<String,String>();
		map.put("userId", userId);
		map.put("groupId", groupId);
		
		return (UserDTO)getEntity("getUser",map);
	}

	/* (non-Javadoc)
	 * @see com.dream.house.dao.UserDAO#getAllUsers()
	 */
	@Override
	public List<UserDTO> getAllUsers() throws DAOException {
		
		return null;
	}

	/* (non-Javadoc)
	 * @see cn.com.servyou.base.dao.BaseDAO#getEntityName()
	 */
	@Override
	public String getEntityName() {
		return UserDTO.class.getCanonicalName();
	}

}
